/**
 * @file      stk_content_encoding.h
 * @copyright Copyright (c) 2021, CYG-ZCW Co., Ltd. All Rights Reserved.
 * @brief     brief
 * @author    caiwang213@qq.com
 * @date      2021-03-23 00:07:05
 *
 * @note
 *  stk_content_encoding.h defines
 */
#ifndef __STK_CONTENT_ENCODING_H__
#define __STK_CONTENT_ENCODING_H__

#include "stk_base.h"

namespace stk
{
class STK_API ContentEncoding : public MsgField
{
public:
    ContentEncoding();
    ContentEncoding(const ContentEncoding &src);
    ContentEncoding(const char *buf, int len);
    virtual ~ContentEncoding();

public:
    ContentEncoding & operator= (const ContentEncoding& oSrc);

    virtual	void 	clear();
    virtual	bool	isvalid() const;
    virtual int32_t	to_str(string & str);
    virtual int32_t	parse(const char * szBuf, int nBufLen);

public:
    string		    m_strValue;                /**< value for ContentEncoding (size of attachments) */
};
}
#endif
